package com.lyc.product.bean;

import java.util.Date;

/**
 * 商品类
 */
public class Product {
    private Integer id;//商品编号
    private int uid;//用户编号
    private String productName;//商品名称
    private Double price;//价格
    private Integer  numbers;//库存
    private Double discount;//折扣
    private Code state ;//状态
    private  String   press;//出版社
    private  String author;//作者
    private  Date publicationTime;//出版时间
    private  String productImgurl;//图片地址
    private  Integer productId;//商品编号
    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getNumbers() {
        return numbers;
    }

    public void setNumbers(Integer numbers) {
        this.numbers = numbers;
    }

    public Double getDiscount() {
        return discount;
    }

    public void setDiscount(Double discount) {
        this.discount = discount;
    }

    public Code getState() {
        return state;
    }

    public void setState(Code state) {
        this.state = state;
    }

    public String getPress() {
        return press;
    }

    public void setPress(String press) {
        this.press = press;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Date getPublicationTime() {
        return publicationTime;
    }

    public void setPublicationTime(Date publicationTime) {
        this.publicationTime = publicationTime;
    }

    public String getProductImgurl() {
        return productImgurl;
    }

    public void setProductImgurl(String productImgurl) {
        this.productImgurl = productImgurl;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", productName='" + productName + '\'' +
                ", price=" + price +
                ", numbers=" + numbers +
                ", discount=" + discount +
                ", state=" + state +
                ", press='" + press + '\'' +
                ", author='" + author + '\'' +
                ", publicationTime=" + publicationTime +
                ", productImgurl='" + productImgurl + '\'' +
                ", productId=" + productId +
                '}';
    }
}
